{%include file="m.index.header.tpl.php"%}
<!--头部 end-->
<!--主体部分-->
<div class="container" style="margin-top:70px;">
     <div class="row row_margin">
     
       <form name="myform" action="" method="post" role="form" enctype="multipart/form-data"> 
              <div class="form-group">
                  <label for="" class="col-sm-2  control-label">活动项目名称：</label>
                 <div class="col-sm-10 ">
                  <input type="text" class="form-control" name="activitys_title" value="{%$activitys_data.activitys_title%}">
                </div>
             </div>
               <div class="form-group">
                  <label for="" class="col-sm-2  control-label">年级名称：</label>
                 <div class="col-sm-10 ">
                   <select class="form-control" name="grade_id">
					{%foreach from=$grade_list key=key item=value%}
						<option value="{%$value.grade_id%}"{%if $value.grade_id==$activitys_data.grade_id%}selected{%/if%}> {%$value.grade_name%}</option>
					{%/foreach%}
				   </select>
                </div>
             </div>
               <div class="form-group">
                  <label for="" class="col-sm-2  control-label">学科名称：</label>
                 <div class="col-sm-10 ">
					<select class="form-control" name="subject_id">
					   {%foreach from=$subject_list key=key item=value%}
							<option value="{%$value.subject_id%}"{%if $value.subject_id==$activitys_data.subject_id%}selected{%/if%}>{%$value.subject_name%}</option>
						{%/foreach%}
						
					</select>
                </div>
             </div>
             
             
              <div class="form-group">
                <label for="" class="col-sm-2  control-label">活动计划：</label>
                 <div class="col-sm-10 ">
                 <textarea id="category_content" name="activitys_con" rows="10" cols="40" style="width: 100%">{%$activitys_data.activitys_con%}</textarea>
                </div>
             </div>
             <div class="form-group">
                <label for="" class="col-sm-2  control-label">获奖名单：</label>
                 <div class="col-sm-10 ">
                 <textarea id="category_content1" name="activitys_award" rows="10" cols="40" style="width: 100%">{%$activitys_data.activitys_award%}</textarea>
                 
                </div>
             </div>
             <div class="form-group">
                <label for="" class="col-sm-2  control-label">活动总结：</label>
                 <div class="col-sm-10 ">
                 <textarea id="category_content2" name="activitys_summarize" rows="10" cols="40" style="width: 100%">{%$activitys_data.activitys_summarize%}</textarea>
                </div>
             </div>
             
             
             <div class="form-group">
                  <label for="" class="col-sm-2  control-label">附件：</label>
                 <div class="col-sm-10 ">
				  {%if $activitys_data.activitys_file!=""%}
				  <br><input type="radio" name="activitys_file_re" value="0" checked>
				  <a href="upload/activitys_file/{%$activitys_data.activitys_file%}" target="_blank">{%$activitys_data.activitys_file%}</a>
				  <br><br><input type="radio" name="activitys_file_re" value="1" > 重新上传 <input id="activitys_file" name="activitys_file" type="file" size="60"/>
				  {%else%}
				  <input id="activitys_file" name="activitys_file" type="file" size="60"/>
				  <input type="hidden" name="activitys_file_re" value="1">
				  {%/if%}
                 
                </div>
             </div>
             
             
             
             
      
     </div><!--row  end-->
        
        <div class="row row_margin" > 
        <button type="submit" class="btn btn-primary btn-lg btn-block btn-primary2">确定</button>
        </div>
		 </form>
</div><!--container  end-->
<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}

<!--底部end-->
<!--日历-->
<script>
  $(function() {
    $( "#datepicker" ).datepicker({
		
        changeMonth: true,
        changeYear: true
	  
    });
	
	$( "#datepicker2" ).datepicker({
		
        changeMonth: true,
        changeYear: true
	  
    });
  });
  </script>
  
  <!--编辑器-->
<script type="text/javascript" src="mstatic/xhe/xheditor-1.2.2.min.js"></script>
<script type="text/javascript" src="mstatic/xhe/xheditor_lang/zh-cn.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
}
function submitForm(){$('#myform').submit();}
</script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content1').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
}
function submitForm(){$('#myform').submit();}
</script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content2').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
}
function submitForm(){$('#myform').submit();}
</script>
</body>
</html>
